package com.rran.study.designpattern.behavioral.observer.event.app;

import com.rran.study.designpattern.behavioral.observer.enums.AppEventEnums;
import com.rran.study.designpattern.behavioral.observer.model.OrderData;

/**
 * @author yy
 * @Type AppOrderEvent.java
 * @Desc
 * @date 2020/7/21 18:46
 */
public class OrderEvent extends AppEvent {

    private final String eventName = AppEventEnums.ORDER.name();

    @Override
    public String getEventName() {
        return eventName;
    }

    public OrderEvent(Object source) {
        super(source);
    }

    @Override
    public OrderData getSource() {
        return (OrderData) super.getSource();
    }
}
